<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::head('首页')">

    <meta charset="UTF-8"/>
    <title>新建图书类别</title>
</head>
<body>
<div th:replace="~{layout::header}"></div>
<div class="container" style="margin-left:400px">
    <h3 >添加图书类别</h3>

    <form  th:action="@{/category/add2}" method="post">

        <label>类别id</label>         <input type="text"  name="id" ></br>
        <label>类别名称:</label>     <input type="text"  name="name" ></br>


             <input type="submit" value="提交" />
             <input type="reset" value="重填" />
             <a th:href="@{/category/list}" >返回</a>

    </form>
</div>
</body>
</html>